package Dao.impl;

import static org.junit.Assert.*;

import java.util.List;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import Dao.UserDao;
import pojo.User;

public class UserDaoImplTest {
private UserDaoImpl ud=new UserDaoImpl();
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testAddUser() {
		User u = new User("tj", "123", 11, true, 1);
		ud.addUser(u);
		System.out.println("suc");
	}

	@Test
	public void testFindUser() {
		fail("Not yet implemented");
	}

	@Test
	public void testFindAllUsers() {
		List<User> us=ud.findAllUsers();
		System.out.println(us);
	}

	@Test
	public void testFireUser() {
		int id=21;
	ud.fireUser(id);
	System.out.println("1");
	}

}
